package modele;

abstract class AbstractCell implements Cell {
	
	int numCell;
	String typeCell;
	Player occupyingPlayer;

	public Player getPlayer() {
		return this.occupyingPlayer;
	}
	
	public void setPlayer(Player player) {
		occupyingPlayer = player;
	}

	public String getTypeCell() {
		return typeCell;
	}

	public int getIndex() {
		return numCell;
	}
	
	public int handleMove(int diceThrow) {
		return getIndex();
	}

	public boolean canBeLeftNow() {
		return true;
	}

	public boolean isBusy() {
		if (numCell != 0 && occupyingPlayer == null)
			return false;
		return true;
	}
	
	public void welcome(int diceThrow) {}

}
